package com.example.administrator.yuejian_2.interservice;

import com.example.administrator.yuejian_2.bean.LoginBean;
import com.example.administrator.yuejian_2.bean.MyPostBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/16.
 */

public interface UserService {
    @GET("user/dologin")//绿色对应接口地址
    Call<LoginBean> userLogin(@Query("u_name")String username,
                              @Query("u_pass")String userpass);

    @POST("user/mypost")
    Call<List<MyPostBean>> mypost(@Query("uid") int uid);
}
